package com.ruikc.study.demo.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;

import java.io.Serial;


/**
 * 商品规格型号表，记录商品的规格和型号信息 实体类。
 *
 * @author zhiyuan
 * @since 2025-02-22
 */
@Table("product_spec")
public class ProductSpec implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 商品规格型号的唯一标识符，自增主键
     */
    @Id(keyType = KeyType.Auto)
    private Integer specId;

    /**
     * 关联的商品 ID，外键关联 product 表的 product_id
     */
    private Integer productId;

    /**
     * 商品规格名称
     */
    private String specName;

    /**
     * 商品型号名称
     */
    private String modelName;

    /**
     * 商品规格编号
     */
    private String specCode;

    /**
     * 商品规格型号记录的创建时间
     */
    private String createdAt;

    /**
     * 商品规格型号记录的更新时间
     */
    private String updatedAt;

    /**
     * 商品规格型号记录的删除时间，若未删除则为空
     */
    private String deletedAt;

    public Integer getSpecId() {
        return specId;
    }

    public void setSpecId(Integer specId) {
        this.specId = specId;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public String getSpecName() {
        return specName;
    }

    public void setSpecName(String specName) {
        this.specName = specName;
    }

    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    public String getSpecCode() {
        return specCode;
    }

    public void setSpecCode(String specCode) {
        this.specCode = specCode;
    }

    public String getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(String createdAt) {
        this.createdAt = createdAt;
    }

    public String getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(String updatedAt) {
        this.updatedAt = updatedAt;
    }

    public String getDeletedAt() {
        return deletedAt;
    }

    public void setDeletedAt(String deletedAt) {
        this.deletedAt = deletedAt;
    }

}
